package cn.ethan.demo.design.factory;

import java.util.concurrent.TimeUnit;

/**
 * @author 张俊辉
 */

public interface CacheAdapter {

    String get(String key);

    void set(String key, String value);

    void set(String key, String value, long timeout, TimeUnit unit);

    void del(String key);
}
